<template>
  <div id="app">
    <nav>
      <router-link to="/">Home</router-link> |
      <router-link to="/m-vue2">m-vue2</router-link>
    </nav>
    <span @click="sendMes">sendMes</span>
    <div id="container"></div>
    <router-view />
  </div>
</template>
<script>
import actions from "./actions";
import store from "@/store";
export default {
  methods: {
    sendMes() {
      store.state.qkstore.data.count++;
      actions.setGlobalState(store.state.qkstore); //通过setGlobalState改变全局状态
    },
  },
  created() {},
};
</script>
